#include <d3dx9.h>
#include <strsafe.h>

class Mesh
{
public:
	Mesh(LPDIRECT3DDEVICE9 pD3DDevice, LPSTR pFilename);
	virtual ~Mesh(void);

	void Render();

private:

LPDIRECT3DDEVICE9 g_pd3dDevice;

LPD3DXMESH          g_pMesh; // Our mesh object in sysmem
D3DMATERIAL9*       g_pMeshMaterials; // Materials for our mesh
LPDIRECT3DTEXTURE9* g_pMeshTextures; // Textures for our mesh
DWORD               g_dwNumMaterials;   // Number of mesh materials
};